# Python MetaClass元类底层实现原理
class MyClass:
    pass

instance = MyClass()
print(type(instance))
print(type(MyClass))
print()

class MyClass:
    data = 1

instance = MyClass()
print(MyClass, instance)
print(instance.data)

MyClass = type('MyClass', (), {"data": 1})
instance = MyClass()
print(MyClass, instance)
print(instance.data)
